//
//  MFWSdkEnvironment.h
//  MFWSdk
//
//  Created by Song Xiaofeng on 13-7-24.
//  Copyright (c) 2013年 Mafengwo Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MFWUserInfo;
@interface MFWSdkEnvironment : NSObject

@property(nonatomic, copy)NSString *mfwSDKVersion;// MFWSdk version

@property(nonatomic, strong, readonly)MFWUserInfo *userInfo;
@property(nonatomic, assign, readonly)BOOL hasLogin;

@property(nonatomic, copy)NSString *consumerKey;
@property(nonatomic, copy)NSString *consumerSecret;
@property(nonatomic, copy)NSString *accessToken;
@property(nonatomic, copy)NSString *tokenSecret;
@property(nonatomic, copy)NSString *defaultToken;
@property(nonatomic, copy)NSString *defaultTokenSecret;

@property(nonatomic, copy)NSString *appId;// itunes appid
@property(nonatomic, copy)NSString *channelId;


@property(nonatomic, copy)NSString *idfa;

@property(nonatomic, copy)NSString *appVersion;
@property(nonatomic, copy)NSString *appCode;// mfw app code ( bundle identifier eg. cn.mafengwo.www)
@property(nonatomic, copy)NSString *ver;

@property(nonatomic, copy)NSString *openUDID;
@property(nonatomic, copy)NSString *systemVersion;// eg. 5.0.1
@property(nonatomic, copy)NSString *hardwareModel;// eg. iPhone3,1
@property(nonatomic, copy)NSString *deviceName;// iphone, ipod
@property(nonatomic, copy)NSString *pushDeviceToken;// push token

@property(nonatomic)BOOL isDEBUG;
@property(nonatomic, copy)NSString *systemUserAgent;// User-Agent fetched from UIWebview
@property(nonatomic, copy)NSString *mfwUserAgent;// MFW used User-Agent which based on systemUserAgent

@property(nonatomic)BOOL patchingEnabled;


+ (MFWSdkEnvironment*)sharedInstance;

-(BOOL)setCookie:(NSDictionary*)cookies;

@end

#define YWUid ([MFWSdkEnvironment sharedInstance].userInfo.uid)

